<template>
	<view class="status flex-row items-center" style="gap: 10rpx;">
		<u-icon v-if="item.status==0" name="clock" color="#000000" size="28"></u-icon>
		<u-icon v-else-if="item.status==2" name="pause-circle" color="#000000" size="28"></u-icon>
		<u-icon v-else-if="item.status==1" name="checkmark-circle-fill" color="#000000" size="28"></u-icon>
		<text v-if="item.status==0" class="title">发布中</text>
		<text v-else-if="item.status==1" class="title">已结束</text>
		<text v-else-if="item.status==2" class="title">暂停发布</text>
		<text v-if="type==17" class="tongji">{{item.pets.length}}/{{item.num}}</text>
	</view>
</template>

<script>
	export default {
		props: {
			item: {
				type: Object
			},
			type: {
				type: String | Number
			}
		},
	}
</script>

<style lang="scss" scoped>
	.status {
		.title {
			font-weight: bold;
			font-size: 24rpx;
			color: #000000;
		}

		.tongji {
			font-weight: 500;
			font-size: 24rpx;
			color: #999999;
		}
	}
</style>